package com.mutouren.common.orm;

public class TranscationFactory {
		
	/**
	 * 创建事务
	 * @param cfgName (即：配置文件中environment-id)
	 * @return
	 */
	public static Transcation createTranscation(String cfgName) {
		/*		if(OrmConfig.getOrmType() == OrmType.HIBERNATE) {
					//return new HibernateTrans(cfgName);
					return null;
				} else if (OrmConfig.getOrmType() == OrmType.MYBATIS) {*/
		return new IbatisTrans(cfgName);
		/*		} else {
					throw new RuntimeException("TranscationFactory.createTranscation fail");
				}*/
		
	}	
}
